package top.juntech.serverproviderservicehi.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/hi")
public class ServiceHiController {

    @Value("${server.port}")
    String port;

    @RequestMapping
    public String index(@RequestParam String name){
        return "hi,"+name+",i am from port : "+this.port;
    }
}
